<!DOCTYPE html>
<html class="no-js" lang="">

<head>
    #include( "/public-head.html")

</head>

<body style="background-color: #ffffff !important;">

<div class="main-content" >
    <div class="panel" >
     	<div class="panel-body" >
            <ul class="pager pager-square pull-right">
                <button  type="button" class="btn btn-info btn-sm btn-icon mr5" data-url="/vrs/datadict/edit.html" data-target="new" id="add-ticket-$!{System.currentTimeMillis}" data-text="添加字典信息" >
                    <i class="fa fa-plus"></i>
                    <span>添加</span>
                </button>

                <button type="button" class="btn btn-info btn-sm btn-icon mr5" data-url="/vrs/datadict/list.jsn">
                    <i class="fa fa-spinner"></i>
                    <span>刷新</span>
                </button>
            </ul>
            <table id="listTable" class="table table-bordered bordered table-striped table-condensed " data-url="/vrs/datadict/list.jsn">
                <thead>
                <tr>
                    <th>名称</th>
                    <th>类型</th>
                    <th>状态 </th>
                    <th>描述</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                #if($page)
                    #foreach( $row in $!{page.rows})
                    <tr>
                        <td>$!{row.name}</td>
                        #foreach( $dtm in $!{dataDictTypeMap.entrySet()})
                        	#if($dtm.key == $row.type)
	                           <td>$!{dtm.value}</td>
	                        #end
	                    #end
                        <td>$!{row.status}</td>
                        <td>$!{row.description}</td>
                        <td>
                            <button  class="btn btn-icon-icon btn-sm btn-primary" data-url="/vrs/datadict/edit.html?dataDictId=$!{row.dataDictId}" title="编辑" id="update-datadict-$!{row.dataDictId}" data-text="修改字典[$!{row.dataDictId}]" data-target="new"><i class="fa fa-edit"></i></button>
                            <button class="btn btn-icon-icon btn-sm btn-danger" ajax-url="/vrs/datadict/delete/$!{row.dataDictId}.jsn" title="删除"><i class="fa fa-remove"></i></button>
                        </td>
                    </tr>
                    #end
                #end
                </tbody>
            </table>
            <ul id="ul-page" class="pager pager-square pull-left" >
                <li >
                    <a href="" id="first-page" page="1">第一页</a>
                </li>
                <li >
                    <a href="" id="prev-page" page="$!{page.prevPage}">上一页</a>
                </li>
                <li>
                    <a href="" id="next-page" page="$!{page.nextPage}">下一页</a>
                </li>
                <li >
                    <a href="" id="last-page" page="$!{page.total}">最后一页</a>
                </li>
            </ul> 
            <ul class="pager pager-square pull-right">
                <li >
                    <span><input name="page" style="border: none;background: none;width: 40px;"></span>
                </li>
                <li>
                    <a href="">跳转</a>
                </li>
                <li id="page-total">
                    <span>$!{page.page}/$!{page.total} 页</span>
                </li>
                <li id="total-rows">
                    <span>总共: $!{page.records} 条</span>
                </li>
            </ul>
        </div>
    </div>

</div>

#include( "/public-script.html")
#include( "/sub-script.html")
</body>

</html>
